using System;

namespace eduSrc.Models
{
    [Serializable]
    public class Shop_Book
    {
        #region Private Fields

        private int _id = 0;
        private int _categoryID = 0;
        private String _name = String.Empty;
        private String _publisher = String.Empty;
        private String _author = String.Empty;
        private String _isdn = String.Empty;
        private String _intro = String.Empty;
        private String _picUrl = String.Empty;
        private Decimal _price = 0;
        private Decimal _salePrice = 0;
        private DateTime _uploadDate = DateTime.Now;
        private int _viewCount = 0;
        private byte _hideEnable = 0;
        private byte _focalEnable = 0;
        private Int32 _sortNums = 0;

        #endregion 

        #region Properties

        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }

        public int CategoryID
        {
            set { _categoryID = value; }
            get { return _categoryID; }
        }

        public String Name
        {
            set { _name = value; }
            get { return _name; }
        }

        public String Publisher
        {
            set { _publisher = value; }
            get { return _publisher; }
        }

        public String Author
        {
            set { _author = value; }
            get { return _author; }
        }

        public String Isdn
        {
            set { _isdn = value; }
            get { return _isdn; }
        }

        public String Intro
        {
            set { _intro = value; }
            get { return _intro; }
        }

        public String PicUrl
        {
            set { _picUrl = value; }
            get { return _picUrl; }
        }

        public Decimal Price
        {
            set { _price = value; }
            get { return _price; }
        }

        public Decimal SalePrice
        {
            set { _salePrice = value; }
            get { return _salePrice; }
        }

        public DateTime UploadDate
        {
            set { _uploadDate = value; }
            get { return _uploadDate; }
        }

        public int ViewCount
        {
            set { _viewCount = value; }
            get { return _viewCount; }
        }

        public byte HideEnable
        {
            set { _hideEnable = value; }
            get { return _hideEnable; }
        }

        public byte FocalEnable
        {
            set { _focalEnable = value; }
            get { return _focalEnable; }
        }

        public int SortNums
        {
            set { _sortNums = value; }
            get { return _sortNums; }
        }
        #endregion
    }
}
